package com.dongdongshop.service;

import com.dongdongshop.pojo.Cart;

import java.util.List;

public interface CartService {
    List<Cart> addCart(List<Cart> cartList, Long itemId, Integer num);

    //将购物车数据放入redis中
    void addCartListToRedis(List<Cart> cartList,String username);
    //从Redis中获取购物车数据
    List<Cart> findListCartFromRedis(String username);
    //合并购物车
    List<Cart> merageCartList(List<Cart> cookieList, List<Cart>redisList);
}
